package com.ruoqing.log.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoqing.core.domain.rqlog.LogEntity;
import org.springframework.web.bind.annotation.*;

/**
	* @author YaoXian
	* @title: AsyncLogService
	* @projectName ruoxi-blog
	* @description: 若兮微服务 -
	* @date 2020-12-07 20:03
	*/
@RequestMapping(path = "/log")
public interface AsyncLogService {
		
		/**
			* 异步收集基础日志
			* @param logEntity
			*/
		@PostMapping(path = "/asyncSaveLog")
		void asyncSaveLog(@RequestBody LogEntity logEntity);
		
		/**
			* 分页查询基础日志
			* @param currentPage
			* @param pageSize
			* @return Page<LogEntity>
			*/
		@GetMapping(path = "/selectLogByPage")
		Page<LogEntity> selectLogByPage(@RequestParam("currentPage") Integer currentPage, @RequestParam("pageSize") Integer pageSize);
		
		/**
			*  根据ID删除基础日志
			* @param logId
			* @return Integer
			*/
		@DeleteMapping(path = "/deleteBaseLog")
		Integer deleteBaseLog(@RequestParam("logId")Integer logId);
}
